.class public Lcom/glympse/platform/GFacebook;
.super Ljava/lang/Object;
.source "GFacebook.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/glympse/platform/GFacebook$Callback;,
        Lcom/glympse/platform/GFacebook$Params;
    }
.end annotation


# direct methods
.method public constructor <init>(Lcom/glympse/platform/GFacebook$Callback;Lcom/glympse/platform/GFacebook$Params;)V
    .locals 3
    .parameter "oCallback"
    .parameter "oParams"

    .prologue
    .line 22
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 25
    sget-object v1, Lcom/glympse/android/glympseservice/GlympseService;->ms_oThis:Lcom/glympse/android/glympseservice/GlympseService;

    invoke-virtual {v1}, Lcom/glympse/android/glympseservice/GlympseService;->GetFacebook()Lcom/glympse/android/glympseservice/FacebookWrapper;

    move-result-object v1

    invoke-virtual {v1, p2}, Lcom/glympse/android/glympseservice/FacebookWrapper;->PostToWall(Lcom/glympse/platform/GFacebook$Params;)Ljava/lang/String;

    move-result-object v0

    .line 28
    .local v0, strError:Ljava/lang/String;
    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 30
    const/4 v1, 0x1

    const/4 v2, 0x0

    invoke-interface {p1, v1, v2}, Lcom/glympse/platform/GFacebook$Callback;->FacebookPostResult(ZLjava/lang/String;)V

    .line 38
    :goto_0
    return-void

    .line 36
    :cond_0
    const/4 v1, 0x0

    invoke-interface {p1, v1, v0}, Lcom/glympse/platform/GFacebook$Callback;->FacebookPostResult(ZLjava/lang/String;)V

    goto :goto_0
.end method

.method public static SetUpgradedSession(Ljava/lang/String;)V
    .locals 1
    .parameter "strSession"

    .prologue
    .line 43
    sget-object v0, Lcom/glympse/android/glympseservice/GlympseService;->ms_oThis:Lcom/glympse/android/glympseservice/GlympseService;

    invoke-virtual {v0}, Lcom/glympse/android/glympseservice/GlympseService;->GetFacebook()Lcom/glympse/android/glympseservice/FacebookWrapper;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/glympse/android/glympseservice/FacebookWrapper;->SetUpgradedSession(Ljava/lang/String;)V

    .line 44
    return-void
.end method
